package cs342.uwosh.group1.mycontacts.Threads;



import cs342.uwosh.group1.mycontacts.Contact;
import cs342.uwosh.group1.mycontacts.MainActivity;
import cs342.uwosh.group1.mycontacts.SqlConnect;

import android.os.AsyncTask;

public class DeleteContactTask extends AsyncTask<Object, Object, Contact>{

	@Override
	protected Contact doInBackground(Object... arg0) {
		SqlConnect db = MainActivity.db;
		db.deleteContact((Contact)arg0[0]);
		return null;
	}
	
	protected void onPostExecute(Contact result)
	{
		new GetAllContactTask().execute();
	}
}
